home *** CD-ROM | disk | FTP | other *** search
- global zoomfg, zoomlevel, photosprite, frameworksprite, frameworksprite2, originalwidth, originalheight, startloch, startlocv
-
- on photozoom photonum
- puppetSound(1, "C_view.aif")
- set photosprite to 35
- set frameworksprite to 36
- set frameworksprite2 to 37
- set currentsprite to 9 + photonum
- if photonum < 10 then
- set photonumstring to "0" & photonum
- else
- set photonumstring to photonum
- end if
- if the frame = 6 then
- set photocast to "01_" & photonumstring & ".PIC"
- else
- if the frame = 11 then
- set photocast to "02_" & photonumstring & ".PIC"
- else
- if the frame = 16 then
- set photocast to "03_" & photonumstring & ".PIC"
- else
- if the frame = 21 then
- set photocast to "04_" & photonumstring & ".PIC"
- else
- if the frame = 26 then
- set photocast to "05_" & photonumstring & ".PIC"
- end if
- end if
- end if
- end if
- end if
- puppetSprite(photosprite, 1)
- puppetSprite(frameworksprite, 1)
- puppetSprite(frameworksprite2, 1)
- set the castNum of sprite photosprite to member photocast
- set the stretch of sprite photosprite to 1
- set the stretch of sprite frameworksprite to 1
- set the stretch of sprite frameworksprite2 to 1
- set originalwidth to the width of member photocast
- set originalheight to the height of member photocast
- set the width of sprite photosprite to originalwidth * 25 / 100
- set the height of sprite photosprite to originalheight * 25 / 100
- set the width of sprite frameworksprite to originalwidth * 25 / 100
- set the height of sprite frameworksprite to originalheight * 25 / 100
- set the width of sprite frameworksprite2 to originalwidth * 25 / 100
- set the height of sprite frameworksprite2 to originalheight * 25 / 100
- if originalwidth < originalheight then
- set startloch to the locH of sprite currentsprite + 35
- set startlocv to the locV of sprite currentsprite + 50
- set the locH of sprite photosprite to startloch
- set the locV of sprite photosprite to startlocv
- set the locH of sprite frameworksprite to startloch
- set the locV of sprite frameworksprite to startlocv
- set the locH of sprite frameworksprite2 to startloch
- set the locV of sprite frameworksprite2 to startlocv
- else
- set startloch to the locH of sprite currentsprite + 50
- set startlocv to the locV of sprite currentsprite + 35
- set the locH of sprite photosprite to startloch
- set the locV of sprite photosprite to startlocv
- set the locH of sprite frameworksprite to startloch
- set the locV of sprite frameworksprite to startlocv
- set the locH of sprite frameworksprite2 to startloch
- set the locV of sprite frameworksprite2 to startlocv
- end if
- if originalwidth > originalheight then
- set the castNum of sprite frameworksprite to member 76
- set the castNum of sprite frameworksprite2 to member 77
- else
- set the castNum of sprite frameworksprite to member 72
- set the castNum of sprite frameworksprite2 to member 73
- end if
- set masksprite to 31
- puppetSprite(masksprite, 1)
- set the stretch of sprite masksprite to 1
- set the width of sprite masksprite to the width of sprite currentsprite
- set the height of sprite masksprite to the height of sprite currentsprite
- set the loc of sprite masksprite to the loc of sprite currentsprite
- set the visible of sprite masksprite to 1
- set zoomlevel to 1
- set zoomfg to 1
- updateStage()
- makevisible()
- repeat while zoomlevel < 3
- photomoving()
- updateStage()
- set zoomlevel to zoomlevel + 1
- if zoomlevel = 2 then
- set the visible of sprite frameworksprite2 to 1
- end if
- end repeat
- cursor(-1)
- go(#next)
- end
-
- on makevisible
- set the visible of sprite photosprite to 1
- set the visible of sprite frameworksprite to 1
- end
-
- on photomoving
- set the width of sprite photosprite to originalwidth * (zoomlevel * 50) / 100
- set the height of sprite photosprite to originalheight * (zoomlevel * 50) / 100
- set the width of sprite frameworksprite to originalwidth * (zoomlevel * 50) / 100
- set the height of sprite frameworksprite to originalheight * (zoomlevel * 50) / 100
- set the width of sprite frameworksprite2 to the width of sprite frameworksprite
- set the height of sprite frameworksprite2 to the height of sprite frameworksprite
- set the locH of sprite photosprite to the locH of sprite photosprite + ((320 - startloch) / 2)
- set the locV of sprite photosprite to the locV of sprite photosprite + ((240 - startlocv) / 2)
- set the locH of sprite frameworksprite to the locH of sprite frameworksprite + ((320 - startloch) / 2)
- set the locV of sprite frameworksprite to the locV of sprite frameworksprite + ((240 - startlocv) / 2)
- set the locH of sprite frameworksprite2 to the locH of sprite frameworksprite2 + ((320 - startloch) / 2)
- set the locV of sprite frameworksprite2 to the locV of sprite frameworksprite2 + ((240 - startlocv) / 2)
- end
-